|
bargraph2 2.2.1
|
This file contains API for Bargraph 2 Click driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"#include "drv_spi_master.h"Go to the source code of this file.
Data Structures | |
| struct | bargraph2_t |
| Click ctx object definition. More... | |
| struct | bargraph2_cfg_t |
| Click configuration structure definition. More... | |
Macros | |
| #define | BARGRAPH2_MAP_MIKROBUS(cfg, mikrobus) |
| #define | BARGRAPH2_RETVAL uint8_t |
| #define | BARGRAPH2_OK 0x00 |
| #define | BARGRAPH2_INIT_ERROR 0xFF |
| #define | BARGRAPH2_POWER_ON 1 |
| #define | BARGRAPH2_POWER_OFF 0 |
| #define | BARGRAPH2_LED_SEG_0 0x00 |
| #define | BARGRAPH2_LED_SEG_1 0x01 |
| #define | BARGRAPH2_LED_SEG_2 0x02 |
| #define | BARGRAPH2_LED_SEG_3 0x04 |
| #define | BARGRAPH2_LED_SEG_4 0x08 |
| #define | BARGRAPH2_LED_SEG_5 0x10 |
| #define | BARGRAPH2_LED_SEG_6 0x20 |
| #define | BARGRAPH2_LED_SEG_7 0x40 |
| #define | BARGRAPH2_LED_SEG_8 0x80 |
Functions | |
| void | bargraph2_cfg_setup (bargraph2_cfg_t *cfg) |
| Config Object Initialization function. | |
| BARGRAPH2_RETVAL | bargraph2_init (bargraph2_t *ctx, bargraph2_cfg_t *cfg) |
| Initialization function. | |
| void | bargraph2_default_cfg (bargraph2_t *ctx) |
| Click Default Configuration function. | |
| void | bargraph2_generic_transfer (bargraph2_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
| Generic transfer function. | |
| void | bargraph2_reset (bargraph2_t *ctx) |
| Reset function. | |
| void | bargraph2_write_byte (bargraph2_t *ctx, uint8_t input_data) |
| Write byte function. | |
| void | bargraph2_led_green (bargraph2_t *ctx, uint8_t index) |
| LED green function. | |
| void | bargraph2_led_red (bargraph2_t *ctx, uint8_t index) |
| LED red function. | |
| void | bargraph2_led_yellow (bargraph2_t *ctx, uint8_t index) |
| LED yellow function. | |
| void | bargraph2_leds_green (bargraph2_t *ctx, int start_index, int end_index) |
| LEDs green function. | |
| void | bargraph2_leds_red (bargraph2_t *ctx, int start_index, int end_index) |
| LEDs red function. | |
| void | bargraph2_leds_yellow (bargraph2_t *ctx, int start_index, int end_index) |
| LEDs red function. | |
| void | bargraph2_lights_out (bargraph2_t *ctx) |
| Lights out function. | |
| void | barpgraph2_power (bargraph2_t *ctx, uint8_t power_on_off) |
| Lights out function. | |
This file contains API for Bargraph 2 Click driver.